package com.unbank.es;

import com.google.gson.Gson;

public class Product {

	 	private String id;          //docid
	    private Short taskId;       //任务id
	    private String url;         //URL
	    private String itemId;      //商品ID
	    private Integer subItemTid;  //子商品TID
	    private String uid;         //用户名
	    private Integer shopTid;    ////店铺表ID
	    private String priceLabel;  //便宜、贵
	    private Long price;         //价格
	    private Short sentiment;    //情感，1正面，0中性，-1负面
	    private String source;      //来源平台
	    private Long createdAt;     //评论时间戳
	    private String brand;       //品牌
	    private String text;        //评论内容
	    private String category;    //品类
	    private Short mark;         //评论评分，1到5分
	    private Short status;       //处理状态（未读，已读）
	    private String model;       //产品型号
	    private String[] keywords;    //关键词
	    private Short zombie;       //水军标记
	    
	    
	    
	    
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public Short getTaskId() {
			return taskId;
		}
		public void setTaskId(Short taskId) {
			this.taskId = taskId;
		}
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
		public String getItemId() {
			return itemId;
		}
		public void setItemId(String itemId) {
			this.itemId = itemId;
		}
		public Integer getSubItemTid() {
			return subItemTid;
		}
		public void setSubItemTid(Integer subItemTid) {
			this.subItemTid = subItemTid;
		}
		public String getUid() {
			return uid;
		}
		public void setUid(String uid) {
			this.uid = uid;
		}
		public Integer getShopTid() {
			return shopTid;
		}
		public void setShopTid(Integer shopTid) {
			this.shopTid = shopTid;
		}
		public String getPriceLabel() {
			return priceLabel;
		}
		public void setPriceLabel(String priceLabel) {
			this.priceLabel = priceLabel;
		}
		public Long getPrice() {
			return price;
		}
		public void setPrice(Long price) {
			this.price = price;
		}
		public Short getSentiment() {
			return sentiment;
		}
		public void setSentiment(Short sentiment) {
			this.sentiment = sentiment;
		}
		public String getSource() {
			return source;
		}
		public void setSource(String source) {
			this.source = source;
		}
		public Long getCreatedAt() {
			return createdAt;
		}
		public void setCreatedAt(Long createdAt) {
			this.createdAt = createdAt;
		}
		public String getBrand() {
			return brand;
		}
		public void setBrand(String brand) {
			this.brand = brand;
		}
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		public String getCategory() {
			return category;
		}
		public void setCategory(String category) {
			this.category = category;
		}
		public Short getMark() {
			return mark;
		}
		public void setMark(Short mark) {
			this.mark = mark;
		}
		public Short getStatus() {
			return status;
		}
		public void setStatus(Short status) {
			this.status = status;
		}
		public String getModel() {
			return model;
		}
		public void setModel(String model) {
			this.model = model;
		}
		
		public String[] getKeywords() {
			return keywords;
		}
		public void setKeywords(String[] keywords) {
			this.keywords = keywords;
		}
		public Short getZombie() {
			return zombie;
		}
		public void setZombie(Short zombie) {
			this.zombie = zombie;
		}

		public String toJsonString(){
			Gson gson=new Gson();
			return gson.toJson(this);
		}
		
	   /* private String props;       //评论中出现的产品参数
	    private String extractedInfo;//分析结果
	    private String wordsPair;   //评论出现词对

	    private String factorInfo;  //评论里的销售因子
*/}
